﻿@model Abmemunit.Web.Models.RegisterModel
@{
    ViewBag.Title = "New Member";
}
@{
    Html.RenderAction("MenuView", "User");             
}
<div id="ContentBody">
    <div id="add-Status-message">
    </div>
    @using (Ajax.BeginForm("Register", "User", null,
        new AjaxOptions
        {
            UpdateTargetId = "add-Status-message",
            InsertionMode = InsertionMode.Replace,
            HttpMethod = "POST"

        }, new { @id = "addTStatusForm" }))
    { 

        @Html.ValidationSummary(true)
        <fieldset>
            <legend>New Member</legend>
            <div class="from_row">
                <div class="form_lebel">
                    @Html.LabelFor(m => m.UserName)</div>
                <div class="form_field">
                    @Html.EditorFor(m => m.UserName)
                </div>
            </div>
            <div class="from_row">
                <div class="form_lebel">
                    @Html.LabelFor(m => m.Email)</div>
                <div class="form_field">
                    @Html.EditorFor(m => m.Email)
                </div>
            </div>
            <div class="from_row">
                <div class="form_lebel">
                    @Html.LabelFor(m => m.MailingAddress)</div>
                <div class="form_field">
                    @Html.EditorFor(m => m.MailingAddress)
                </div>
            </div>
            <div class="from_row">
                <div class="form_lebel">
                    @Html.LabelFor(m => m.Active)</div>
                <div class="form_field">
                    @Html.EditorFor(m => m.Active)
                </div>
            </div>
            <div class="from_row">
                <div class="form_lebel">
                    @Html.LabelFor(m => m.IsAdminAccount)</div>
                <div class="form_field">
                    @Html.EditorFor(m => m.IsAdminAccount)
                </div>
            </div>
            <div class="from_row">
                <div class="form_lebel">
                    @Html.LabelFor(m => m.Password)</div>
                <div class="form_field">
                    @Html.EditorFor(m => m.Password)
                </div>
            </div>
            <div class="from_row">
                <div class="form_lebel">
                    @Html.LabelFor(m => m.ConfirmPassword)</div>
                <div class="form_field">
                    @Html.EditorFor(m => m.ConfirmPassword)
                </div>
            </div>
            <br />
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>   
   
    }
</div>
